package net.wangds.auth.job.repo.rdbms;

import net.wangds.auth.job.entity.GeneralJobUserRef;
import net.wangds.data.RemovedEnum;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface JobUserRefRepo extends JpaRepository<GeneralJobUserRef, String> {

    Optional<GeneralJobUserRef> findByJobIdAndUserId(String jobId, String userId);

    List<GeneralJobUserRef> findByUserIdAndRemoved(String id, RemovedEnum normal);
}
